package com.neuedu.domain;

import com.neuedu.utils.DateUtils;
import lombok.Data;

import java.util.Date;

/**
 * @author ercai
 * @date 2019/8/1 - 18:55
 */
@Data
public class SysLog {

    private Integer id;
    private Date visitTime;
    private String visitTimeStr;
    private String username;
    private String ip;
    private String url;
    private Long executionTime;
    private String method;

    public String getVisitTimeStr() {

        if (visitTime != null) {
            visitTimeStr = DateUtils.dateToString(visitTime,"yyyy-MM-dd HH:mm:ss");
        }
        return visitTimeStr;
    }
}
